package old.resourceCache;


public class Resource {
	
	private String name;
	private ResHandle handle;
	
	public Resource(String name){
		this.name = name;
	}
	
	public ResHandle createHandle(char[] buffer, int size, ResCache resCache) {		
		return handle = new ResHandle(this, buffer, size, resCache);		
	}
	
	
	
	public ResHandle getHandle() {
		return handle;
	}
	
	public String getName() {
		return name;
	}
}